# 预期结果数据文件

# 通用响应结构
common_response = {
    "success": {
        "code": 0,
        "errmsg": "OK"
    },
    "error": {
        "auth_error": {
            "code": 401,
            "errmsg": "认证失败"
        },
        "param_error": {
            "code": 400,
            "errmsg": "参数错误"
        },
        "not_found": {
            "code": 404,
            "errmsg": "资源不存在"
        }
    }
}

# 用户模块预期结果
user_expected = {
    "login": {
        "success": {
            "token": "token字符串",  # 实际测试中会动态获取
            "user_id": 1,  # 实际测试中会动态获取
            "username": "test_user"
        }
    },
    "info": {
        "success": {
            "id": 1,
            "username": "test_user",
            "mobile": "13800138000",
            "email": "test@example.com"
        }
    }
}

# 商品模块预期结果
shopping_expected = {
    "categories": {
        "success": {
            "id": 1,
            "name": "分类名称"
        }
    },
    "cart": {
        "success": {
            "count": 1,
            "selected": True,
            "sku_id": 1
        }
    }
}

# 订单模块预期结果
order_expected = {
    "create": {
        "success": {
            "order_id": "订单ID",  # 实际测试中会动态获取
            "total_amount": 100.00,  # 实际测试中会动态获取
            "pay_method": 1
        }
    },
    "payment": {
        "success": {
            "alipay_url": "支付宝支付URL"  # 实际测试中会动态获取
        }
    }
}

# 社区模块预期结果
community_expected = {
    "article": {
        "success": {
            "id": 1,
            "title": "测试文章标题",
            "content": "这是一篇测试文章的内容"
        }
    },
    "comment": {
        "success": {
            "id": 1,
            "content": "这是一条测试评论",
            "article_id": 1
        }
    }
}